package com.dstation.dao;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.dstation.domain.OrderInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

public interface OrderInfoMapper extends BaseMapper<OrderInfo> {


    IPage<OrderInfo>  selectMyOrderById(@Param("iPage") Page iPage, @Param("userId") Long userId);



    int selectOrderIsTimeLimit(@Param("orderId") long orderId);

    int deleteOrderById(@Param("orderId") long orderId);

    IPage<OrderInfo> selectAllOrder(@Param("iPage")Page page);

    IPage<OrderInfo> selectOrderById(@Param("orderId") Integer orderId, @Param("iPage")Page<OrderInfo> orderInfoPage);
}